/**
 * 
 */
package com.greatwideweb.runhelper;

import java.io.Serializable;
import java.util.GregorianCalendar;

/**
 * @author dave
 *
 */
public class RunItem implements Serializable{
  
  private static final long serialVersionUID = 1L;
  private final GregorianCalendar runDate;
  private final int runTimeMinutes;
  private final int runTimeSeconds;
  private final int distance;
  private final int distancePart;
  private final String distanceIndicator;
  
  public RunItem(GregorianCalendar argDate, int argDistance, int argDistancePart) {
    runTimeMinutes = 30;
    runTimeSeconds = 0;
    distanceIndicator="MILES";
    runDate = argDate;
    distance = argDistance;
    distancePart = argDistancePart;
  }
  
  
  
  public int getDistance() {
    return distance;
  }

  public int getDistancePart() {
    return distancePart;
  }

  public String getDistanceIndicator() {
    return distanceIndicator;
  }

  /**
   * @return the runDate
   */
  public GregorianCalendar getRunDate() {
    return runDate;
  }

  /**
   * @return the runTimeMinutes
   */
  public int getRunTimeMinutes() {
    return runTimeMinutes;
  }

  /**
   * @return the runTimeSeconds
   */
  public int getRunTimeSeconds() {
    return runTimeSeconds;
  }
  
  public String toString() {
    return "<RunItem distance='"+ this.distance +"' distancePart='"+ this.distancePart +"' />";
  }
  
  
  
  
  
  

}
